#include<iostream>
using namespace std;
int main()
{
	int n;
	int count = 1;
	while(cin >> n)
	{
		if(n != 250)
			count ++;
		else
			break;
	}
		
	cout << count;
	return 0;
}
